package service;

import entity.Users;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @BelongsProject: lagou-dubbo
 * @Author: GuoAn.Sun
 * @CreateTime: 2020-07-27 17:56
 * @Description: 用户服务的接口
 */

public interface UserService {

    int register(Users users);

    //修改用户
    void updateUser(Users user);

    //根据用户id查询用户信息
    Users findUserById(Integer id);

    //查询条件所有用户信息
    List<Users> findAllUser(Users user);

    //根据用户id删除用户
    void deleteUser(Integer id);
}
